package com.qf.service.impl;

import com.qf.mapper.BBClassMapper;
import com.qf.pojo.BBClass;
import com.qf.service.BBClassService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class BBClassServiceImpl implements BBClassService {
    @Resource
    BBClassMapper bbClassMapper;
    @Override
    public List<BBClass> findAll() {
        return bbClassMapper.findAll();
    }

    @Override
    public int add(BBClass bbClass) {
        return bbClassMapper.add(bbClass);
    }

    @Override
    public int update(BBClass bbClass) {
        return bbClassMapper.update(bbClass);
    }

    @Override
    public int delete(int bbid) {
        return bbClassMapper.delete(bbid);
    }

    @Override
    public BBClass findBBClassByBbid(int bbid) {
        return bbClassMapper.findBBClassByBbid(bbid);
    }
}
